//对象的打印
public class Person {
    String name;
    String gender;//性别
    int age;

    public Person(String name, String gender, int age) {

        this.name = name;
        this.gender = gender;
        this.age = age;
    }
    //若要打印person的属性，需要修改toString方法
//    @Override
//    public String toString() {
//        return "Person{YYX}";
//    }

}